home *** CD-ROM | disk | FTP | other *** search
/ Greenhouse Effect Detection Expriment / NASA Greenhouse Effect Detection Expriment 1992 - Disc 2.iso / software / dos / cdf22pc / src / include / window.h < prev   
Encoding:
C/C++ Source or Header  |  1992-02-27  |  3.5 KB  |  125 lines

  1. /*************************************************************************
  2. *
  3. *  NSSDC/CDF                               Header file for WINDOW
  4. *
  5. *  Version 2.0, 27-Feb-92, ST Systems (STX)
  6. *
  7. *  Modification history
  8. *
  9. *   V1.0  29-Jan-91, H Leckner     Original vesion (for CDF V2.0).
  10. *   V1.1   1-Oct-91, J Love        Modified for IRIX 4.0 port.
  11. *   V1.2  15-Oct-91, H Leckner     Changed  for IBM-RS6000 (AIX) port
  12. *   V2.0  27-Feb-92, H Leckner       IBM PC port.  CDF V2.2.
  13. *
  14. ***************************************************************************/
  15.  
  16. #if defined (ultrix)
  17. #include <cursesX.h>
  18. #else
  19. #if defined (unix)
  20. #include <curses.h>
  21. #else
  22. #if defined(__MSDOS__)
  23. #include "curses.h"
  24. #endif
  25. #endif
  26. #endif
  27. #if defined (AIX)
  28. #include <term.h>
  29. #endif
  30. #if defined(unix) | defined(__MSDOS__)
  31. typedef WINDOW  *WINDOWid;
  32. #else
  33. typedef long int WINDOWid;
  34. #endif
  35. #define NORMAL 0
  36. #define BOLD 1
  37. #define REVERSE 2
  38. #define BLINK 4
  39. #define BORDER 1
  40. #define NOBORDER 0
  41.  
  42. #define _NORMAL
  43. #define A_VISLINEMASK 0x7f
  44. #if !defined(unix)
  45. void create_pasteboard (void);
  46. void set_cursor_mode(int mode);
  47. int window_attribute(WINDOWid window_id);
  48. void put_chars(WINDOWid vdid, char str[], int len, int row,int    col,
  49.         int    erase_line,int    video_type);
  50. void create_virtual_display(int    num_rows, int num_cols, WINDOWid *vdid,
  51.                 int    disp_type, int video_type);
  52. void paste_virtual_display(WINDOWid vdid, int row, int col);
  53. void repaste_virtual_display(WINDOWid vdid, int row, int col);
  54. #if defined(vms)
  55. void change_virtual_display(int num_rows, int num_cols, WINDOWid vdid,
  56.                 int disp_type, int video_type);
  57. #else
  58. void change_virtual_display(int num_rows, int num_cols, WINDOWid *vdid,
  59.                 int disp_type, int video_type);
  60. #endif
  61. void delete_virtual_display(WINDOWid vdid);
  62. void unpaste_virtual_display(WINDOWid vdid);
  63. void unpaste_virtual_display_only(WINDOWid vdid);
  64. void label_border(WINDOWid vdid, char byte_string[], int len);
  65. void delete_pasteboard (int erase_mode);
  66. void set_cursor_abs(WINDOWid vdid, int row, int col);
  67. void change_rendition(WINDOWid vdid, int row, int col, int num_rows,
  68.             int num_cols, int video_type);
  69. void read_display(WINDOWid vdid, int row, char *s);
  70. void begin_display_update(WINDOWid vdid);
  71. void end_display_update(WINDOWid vdid);
  72. void end_display_update_nobox(WINDOWid vdid);
  73. void repaint_screen(void);
  74. void erase_display (WINDOWid vdid, int row, int col,
  75.         int end_row, int end_col);
  76. void set_cursor_rel(WINDOWid vdid, int num_rows, int num_cols);
  77. void set_physical_cursor(int row, int col);
  78. void get_physical_cursor(int *row, int *col);
  79. void return_cursor_pos(WINDOWid vdid, int *row, int *col);
  80. #if defined(vms)
  81. void begin_pasteboard_update();
  82. void end_pasteboard_update();
  83. #endif
  84. #if defined(vms)
  85. void ring_bell(WINDOWid vdid);
  86. void read_input(int *tcode);
  87. #else
  88. void ring_bell(void);
  89. void read_input(WINDOWid vdid, int *tcode);
  90. #endif
  91. #endif
  92.  
  93.  
  94. #if defined(unix)
  95. void create_pasteboard ();
  96. void set_cursor_mode();
  97. int window_attribute();
  98. void put_chars();
  99. void create_virtual_display();
  100. void paste_virtual_display();
  101. void repaste_virtual_display();
  102. void change_virtual_display();
  103. void delete_virtual_display();
  104. void unpaste_virtual_display();
  105. void unpaste_virtual_display_only();
  106. void label_border();
  107. void delete_pasteboard ();
  108. void set_cursor_abs();
  109. void change_rendition();
  110. void read_display();
  111. void begin_display_update();
  112. void end_display_update();
  113. void repaint_screen();
  114. void erase_display ();
  115. void set_cursor_rel();
  116. void set_physical_cursor();
  117. void get_physical_cursor();
  118. void return_cursor_pos();
  119. void ring_bell();
  120. void read_input();
  121. #endif
  122.  
  123.  
  124.  
  125.